home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 23 / AMIGAplus Sonderheft 23 (2000)(Falke)(DE)[!].iso / Updates / Hardware / DCF77update / diskarchiv.lha / DCF77 / Developer / DCF77 state check next >
Text File  |  1999-12-15  |  1KB  |  29 lines

  1.  
  2.                                                             
  3.       DCF77:  How to check the receiver state
  4.       ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  5.  
  6.  
  7.  You can check the receiver state by using the public semaphore "DCF77 State". 
  8.  
  9.  
  10.  struct DCF77StateList
  11.  {
  12.     struct SignalSemaphore sl_Semaphore; // the Semaphore "DCF77 State"
  13.     STRPTR Version; // Pointer to DCF77 version number
  14.     BOOL Received;  // FALSE: no DCF77 time | TRUE: system clock was set by DCF77.
  15.  
  16.     // The values below are introduced with DCF77 version 2.18:
  17.     LONG ReceiverState; // 0 - No signal. 1 - Receiving disturbance.
  18.                         // 2 - Wait for synchronization. 3 - Receiving.
  19.                         // 4 - Program inactive.
  20.     LONG TimeLeft;  // expected time left [s] to finish off
  21.     LONG LastError; // not yet implemented
  22.  };
  23.  
  24.  
  25.  The source code of the shell commands in this drawer contains example code for
  26.  the check of the DCF77 receiver state. WaitDCF77ifCrash uses all possible
  27.  functions.
  28.  
  29.